package _16设计模式_装饰模式;

public class CarWapper implements Driving{
    private Car car;

    public CarWapper(Car car) {
        this.car = car;
    }

    @Override
    public void run() {
        car.run();
        System.out.println("增强越野功能");
    }

    @Override
    public void stop() {
        car.stop();
    }

    public void fire(){
        System.out.println("火力全开");
    }
}
